const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  //webpak-dev-server相关配置
  devServer: {
    proxy: {
        '/api': {
            target: 'http://localhost:3000',
            ws: true,
            changeOrigin: true,
            pathRewrite: {
                '^/api': ''  //通过pathRewrite重写地址，将前缀/api转为/
            }
        }
    }
},
})
